package com.example.warehouseplus.service;

import com.example.warehouseplus.entity.Item;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import java.util.List;

public interface ItemService {
    Flux<Item> getAllItems();
    Mono<Item> getItemByName(String name);
    Mono<Item> createItem(Item item);
    Mono<Item> updateItem(String name, Item item);
    Mono<Void> deleteItem(String name);
    //批量创建商品信息
    Flux<Item> uploadItems(List<Item> items);
    Flux<Item> getItemsByPriceRange(double minPrice, double maxPrice);
}
